2.4.1 The following problems deal with translating from C to MIPS. Assume that the
variables f, g, h, i, and j are assigned to registers $s0, $s1, $s2, $s3, and$s4,
respectively. Assume that the base address of the arrays A and B are in registers $s6
and $s7, respectively.
a. f = –g – A[4];
b. B[8] = A[i–j];
[10] <2.2, 2.3> For the C statements above, what is the corresponding MIPS
assembly code?
 
 
View Solution
 
 
 
<< Back Next >>